#ifndef _APIS_H
#define _APIS_H

#include <stdint.h>

#ifdef __cplusplus
extern "C"{
#endif

#define CMD_SET               0x00
#define CMD_GET               0x01
#define CMD_EVENT             0x02
#define CMD_SET_RESPONSE      0x10
#define CMD_GET_RESPONSE      0x11
#define CMD_EVENT_RESPONSE    0x12
#define CMD_GENERAL_RESPONSE  0x20 // nack for error command

typedef struct tagCMDHEADER {
    uint16_t cmdType;
    uint16_t cmdCode;
    uint16_t cmdIndex;
    uint16_t cmdLength;
} CMDHEADER, *PCMDHEADER;

typedef struct tagPARAM {
    uint32_t paraType;
    uint32_t paraLength;
    uint8_t  paraValue[0];   
} PARAM,*PPARAM;

#define ERROR_CODE U32
#define NEW_POWER       1

/******** Command Code Definitions ************************************/

/******** System Management Command Code Definitions************************/
#define CMD_CODE_CLIENT_CONNECT                 0x0000
#define CMD_CODE_CLIENT_DISCONNECT              0x0001
#define CMD_CODE_CLIENT_HEARTBEAT		        0x0002

#define CMD_CODE_BASIC_INFO                     0x0003
#define CMD_CODE_LOG_LEVEL                      0x0004

#define CMD_CODE_SYS_STATUS                     0x0005

#define CMD_CODE_SYS_REBOOT                     0x0006
#define CMD_CODE_SYS_TIME_SYNC                  0x0007

#define CMD_CODE_SYS_SLEEP                      0x0008
#define CMD_CODE_SYS_WAKE                       0x0009
#define CMD_CODE_SYS_FACTORY_RESET              0x000A

#define CMD_CODE_SYS_REBOOT_ON                  0x000B
#define CMD_CODE_SYS_REBOOT_OFF                 0x000C

#define CMD_CODE_SYS_EXIT                       0x000D

#define CMD_CODE_SYS_COLLECT_LOG                0x000E

#define CMD_CODE_SYS_SSH_ON                     0x000F
#define CMD_CODE_SYS_SSH_OFF                    0x0010

#define CMD_CODE_DEBUG_LEVEL                    0x0020
#define CMD_CODE_SYS_ALERT_TEMP_THRESHOLD    0x0021

#define CMD_CODE_SYS_STARTUP                 0x0080
#define CMD_CODE_SYS_ALERT_TEMP              0x0081

/******** End of System Management Command Code Definitions******************/

/******** Data Processor Command Code Definitions************************/

#define CMD_CODE_BLACKLIST_CONFIG                           0x0410
#define CMD_CODE_BLACKLIST_IMSI_TRANSFER_START              0x0411
#define CMD_CODE_BLACKLIST_IMSI_TRANSFER_STOP               0x0412
#define CMD_CODE_BLACKLIST_IMEI_TRANSFER_START              0x0413
#define CMD_CODE_BLACKLIST_IMEI_TRANSFER_STOP               0x0414
#define CMD_CODE_BLACKLIST_IMSI_DATA                        0x0419
#define CMD_CODE_BLACKLIST_IMEI_DATA                        0x041A


#define CMD_CODE_WHITELIST_CONFIG                           0x0420
#define CMD_CODE_WHITELIST_IMSI_TRANSFER_START              0x0421
#define CMD_CODE_WHITELIST_IMSI_TRANSFER_STOP               0x0422
#define CMD_CODE_WHITELIST_IMEI_TRANSFER_START              0x0423
#define CMD_CODE_WHITELIST_IMEI_TRANSFER_STOP               0x0424
#define CMD_CODE_WHITELIST_IMSI_DATA                        0x0429
#define CMD_CODE_WHITELIST_IMEI_DATA                        0x042A

#define CMD_CODE_DATAPRO_PHONE_INFO                         0x0430
#define CMD_CODE_DATAPRO_MAC_INFO                           0x0431
#define CMD_CODE_SET_UPLOAD_MODE                            0x0432
#define CMD_CODE_BLACKLIST_ALERT                            0x0480


/******** End of Data Processor Command Code Definitions******************/

/******** Data Storage Command Code Definitions************************/
#define CMD_CODE_PHONE_INFO_TRANSFER_START          0x0500
#define CMD_CODE_PHONE_INFO_TRANSFER_STOP           0x0501
#define CMD_CODE_PHONE_INFO_DATA                    0x0503

#define CMD_CODE_OBSOLETE_PHONE_INFO                0x0504
#define CMD_CODE_PHONE_INFO_STORAGE_HOURS           0x0505
#define CMD_CODE_PHONE_INFO_START                   0x0506
#define CMD_CODE_PHONE_INFO_STOP                    0x0507
#define CMD_CODE_GET_DATA_NUM                       0x0508
#define CMD_CODE_PHONE_INFO_TRANSFER_OLD_DATA       0x0509

/******** End of Data Storage Command Code Definitions******************/

/******** PowerMgr Command Code Definitions *********************************/
#define CMD_CODE_PM_POWERON                     0x0700
#define CMD_CODE_PM_SHUTDOWN                    0x0701
#define CMD_CODE_PM_RESTART                     0x0702

#define CMD_CODE_PM_RESET_GPS                   0x0703

#define CMD_CODE_PM_REBOOT_DEVICE               0x0704

#define CMD_EVT_ALARM_PM_DOOR_OPEN              0x0780
#define CMD_EVT_ALARM_PM_DOOR_CLOSE             0x0781
#define CMD_EVT_ALARM_PM_GRAND_LOST             0x0782

#define CMD_EVT_ALARM_GPS_LOST                  0x0783
#define CMD_EVT_ALARM_PM_POWER_OFF              0x0784
#define CMD_EVT_ALARM_PM_POWER_ON               0x0785

/******** End of PowerMgr Module Command Code Definitions********************/


/******** GSM Command Code Definitions *********************************/

/**
 *******************************************************************************
 * @CMD_CTRL 
 * MODULE_GSM_SNIFFER and MODULE_GSM_CAP 
 *
 *******************************************************************************
 */

#define CMD_GSM_HEARTBEAT           0x0908
 

#define CMD_GSM_RESTART              0x0900   /**< Restart gsm baseband card */
#define CMD_GSM_WIRELESS_OFF         0x0901   /**< Shut down gsm transmitter */
#define CMD_GSM_WIRELESS_ON          0x0902   /**< Turn on gsm transmitter */
#define CMD_GSM_AIR_SNIFFER_OFF      0x0903   /**< Shut down gsm sniffer */
#define CMD_GSM_AIR_SNIFFER_ON       0x0904   /**< Turn on gsm sniffer */
#define CMD_GSM_RESET                0x0905   /**< Reset GSM module */
#define CMD_GSM_DO_SNIFFER           0x0906   /**< Trigger to gsm sniffer */
#define CMD_GSM_TX_ATTUATION         0x0907   /**< Set GSM TX attuation */
#define CMD_GSM_RF_CFG               0x0908   /**<config gsm rf */
#define CMD_GSM_UPGRADE              0x0909

/**
 *******************************************************************************
 * @CMD_CONFIG 
 * MODULE_GSM_SNIFFER and MODULE_GSM_CAP 
 *
 *******************************************************************************
 */
#define CMD_GSM_CFG_WIRELESS              0x0910   /**< Configure GSM module */
#define CMD_GSM_CFG_AIR_SNIFFER           0x0911   /**< Configure GSM sniffer module */
#define CMD_GSM_CFG_RECURING_INTERVAL     0x0912   /**< configure recuring interval */


/**
 *******************************************************************************
 * @CMD_GET 
 * MODULE_GSM_SNIFFER and MODULE_GSM_CAP 
 *
 *******************************************************************************
 */
#define CMD_GSM_GET_SNIFFER_CFG            0x0913
#define CMD_GSM_GET_WIRELESS_STATE         0x0914
#define CMD_GSM_GET_SNIFFER_STATE          0x0915
#define CMD_GSM_GET_MODULE_STATUS          0x0916  /** < get GSM module current state > */

#define CMD_GSM_GET_MODULE_CFG             0x0917
#define CMD_GSM_GET_SEND_COUNTER           0x0918
#define CMD_GSM_GET_SNIFFER_RESULT         0x0919

#define CMD_GSM_GET_VERSION                0x091A

#define CMD_GSM_GET_CHOICE_ARFCN           0x091B


/**
 *******************************************************************************
 * @CMD_CONFIG 
 * MODULE_GSM_SNIFFER and MODULE_GSM_CAP 
 *
 *******************************************************************************
 */
#define CMD_GSM_EVT_STATUS                  0x0920   /**< Event for status */
#define CMD_GSM_EVT_WARNING           	    0x0921   /**< Event for warning */ 
#define CMD_GSM_EVT_PHONE           		0x0922   /**< Event for UE ID */ 
#define CMD_GSM_EVT_SNIFF            		0x0923   /**< Event for sniffer result */ 
#define CMD_GSM_EVT_CONFIG                  0x0924

/*
 * warning 
 *
 */

#define CMD_GSM_EVT_NSYNC                  0x0930
#define CMD_GSM_EVT_SYNC                   0x0931
#define CMD_GSM_EVT_NOT_RECV_IMSI          0x0932
#define CMD_GSM_EVT_LOST                   0x0933

/******** End of GSM Command Code Definitions *********************************/ 

/******** CDMA Command Code Definitions *********************************/

/**
 *******************************************************************************
 * @CMD_CTRL 
 * MODULE_CDMA_SNIFFER and MODULE_CDMA_CAP 
 *
 *******************************************************************************
 */

#define CMD_CDMA_RESTART              0x0950   /**< Restart gsm baseband card */
#define CMD_CDMA_WIRELESS_OFF         0x0951   /**< Shut down gsm transmitter */
#define CMD_CDMA_WIRELESS_ON          0x0952   /**< Turn on gsm transmitter */
#define CMD_CDMA_AIR_SNIFFER_OFF      0x0953   /**< Shut down gsm sniffer */
#define CMD_CDMA_AIR_SNIFFER_ON       0x0954   /**< Turn on gsm sniffer */
#define CMD_CDMA_RESET                0x0955   /**< Reset GSM module */
#define CMD_CDMA_DO_SNIFFER           0x0956   /**< Trigger to gsm sniffer */
#define CMD_CDMA_TX_ATTUATION         0x0957   /**< Set GSM TX attuation */
#define CMD_CDMA_HEARTBEAT            0x0958



/**
 *******************************************************************************
 * @CMD_CONFIG 
 * MODULE_CDMA_SNIFFER and MODULE_CDMA_CAP 
 *
 *******************************************************************************
 */
//#define CMD_CDMA_CFG_WIRELESS              0x0910   /**< Configure GSM module */
#define CMD_CDMA_CFG_WIRELESS             0x0961   /**configure cdma module*/
#define CMD_CDMA_CFG_AIR_SNIFFER           0x0962   /**< Configure GSM sniffer module */
#define CMD_CDMA_CFG_RECURING_INTERVAL     0x0963   /**< configure recuring interval */
/**
 *******************************************************************************
 * @CMD_GET 
 * MODULE_CDMA_SNIFFER and MODULE_CDMA_CAP 
 *
 *******************************************************************************
 */
#define CMD_CDMA_GET_SNIFFER_CFG            0x0964
#define CMD_CDMA_GET_WIRELESS_STATE         0x0965
#define CMD_CDMA_GET_SNIFFER_STATE          0x0966
#define CMD_CDMA_GET_MODULE_STATUS          0x0967  /** < get CDMA module current state > */

#define CMD_CDMA_GET_MODULE_CFG             0x0968
#define CMD_CDMA_GET_SEND_COUNTER           0x0969
#define CMD_CDMA_GET_SNIFFER_RESULT         0x0970




/**
 *******************************************************************************
 * @CMD_CONFIG 
 * MODULE_CDMA_SNIFFER and MODULE_CDMA_CAP 
 *
 *******************************************************************************
 */
#define CMD_CDMA_EVT_STATUS                  0x0971   /**< Event for status */
#define CMD_CDMA_EVT_WARNING           	    0x0972   /**< Event for warning */ 
#define CMD_CDMA_EVT_PHONE           		0x0973   /**< Event for UE ID */ 
#define CMD_CDMA_EVT_SNIFF            		0x0974   /**< Event for sniffer result */ 

/*
 * warning 
 *
 */

#define CMD_CDMA_EVT_NSYNC                  0x0980
#define CMD_CDMA_EVT_SYNC                   0x0981
#define CMD_CDMA_EVT_NOT_RECV_IMSI          0x0982
#define CMD_CDMA_EVT_LOST                   0x0983
/******** End of CDMA Command Code Definitions *********************************/ 

/******** WCDMA Command Code Definitions *********************************/

/**
 *******************************************************************************
 * @CMD_CTRL 
 * MODULE_WCDMA_CAP 
 *
 *******************************************************************************
 */

#define CMD_WCDMA_HEARTBEAT           0x1008
 
#define CMD_WCDMA_RESTART              0x1000   /**< Restart gsm baseband card */
#define CMD_WCDMA_WIRELESS_OFF         0x1001   /**< Shut down gsm transmitter */
#define CMD_WCDMA_WIRELESS_ON          0x1002   /**< Turn on gsm transmitter */
#define CMD_WCDMA_RESET                0x1005   /**< Reset GSM module */
#define CMD_WCDMA_TX_ATTUATION         0x1007   /**< Set GSM TX attuation */
#define CMD_WCDMA_SET_TIME             0x1008   /**< Set GSM TX attuation */

/**
 *******************************************************************************
 * @CMD_CONFIG 
 * MODULE_GSM_CAP 
 *
 *******************************************************************************
 */
#define CMD_WCDMA_CFG_WIRELESS              0x1010   /**< Configure GSM module */
#define CMD_WCDMA_CFG_AIR_SNIFFER           0x1011   /**< Configure GSM sniffer module */
#define CMD_WCDMA_CFG_RECURING_INTERVAL     0x1012   /**< configure recuring interval */


/**
 *******************************************************************************
 * @CMD_GET 
 * MODULE_WCDMA_CAP 
 *
 *******************************************************************************
 */
#define CMD_WCDMA_GET_SNIFFER_CFG            0x1013
#define CMD_WCDMA_GET_WIRELESS_STATE         0x1014
#define CMD_WCDMA_GET_SNIFFER_STATE          0x1015
#define CMD_WCDMA_GET_MODULE_STATUS          0x1016  /** < get GSM module current state > */

#define CMD_WCDMA_GET_MODULE_CFG             0x1017
#define CMD_WCDMA_GET_SEND_COUNTER           0x1018
#define CMD_WCDMA_GET_SNIFFER_RESULT         0x1019


/**
 *******************************************************************************
 * @CMD_CONFIG 
 * MODULE_GSM_SNIFFER and MODULE_WCDMA_CAP 
 *
 *******************************************************************************
 */
#define CMD_WCDMA_EVT_STATUS                  0x1020   /**< Event for status */
#define CMD_WCDMA_EVT_WARNING           	  0x1021   /**< Event for warning */ 
#define CMD_WCDMA_EVT_PHONE           		  0x1022   /**< Event for UE ID */ 

/*
 * warning 
 *
 */

#define CMD_WCDMA_EVT_NSYNC                   0x1030
#define CMD_WCDMA_EVT_SYNC                    0x1031
#define CMD_WCDMA_EVT_NOT_RECV_IMSI           0x1032
#define CMD_WCDMA_EVT_LOST                    0x1033

/******** End of WCDMA Command Code Definitions *********************************/ 

/******** TDSCDMA Command Code Definitions *********************************/

/**
 *******************************************************************************
 * @CMD_CTRL 
 * MODULE_TDSCDMA_CAP 
 *
 *******************************************************************************
 */

#define CMD_TDSCDMA_HEARTBEAT            0x1108
#define CMD_TDSCDMA_RESTART              0x1100   /**< Restart gsm baseband card */
#define CMD_TDSCDMA_WIRELESS_OFF         0x1101   /**< Shut down gsm transmitter */
#define CMD_TDSCDMA_WIRELESS_ON          0x1102   /**< Turn on gsm transmitter */
#define CMD_TDSCDMA_RESET                0x1105   /**< Reset GSM module */
#define CMD_TDSCDMA_DO_SNIFFER           0x1106   /**< Trigger to gsm sniffer */
#define CMD_TDSCDMA_TX_ATTUATION         0x1107   /**< Set GSM TX attuation */
#define CMD_TDSCDMA_SET_TIME             0x1109   /**< Set GSM TX attuation */

/**
 *******************************************************************************
 * @CMD_CONFIG 
 * MODULE_TDSCDMA_CAP 
 *
 *******************************************************************************
 */
#define CMD_TDSCDMA_CFG_WIRELESS              0x1110   /**< Configure GSM module */
#define CMD_TDSCDMA_CFG_AIR_SNIFFER           0x1111   /**< Configure GSM sniffer module */
#define CMD_TDSCDMA_CFG_RECURING_INTERVAL     0x1112   /**< configure recuring interval */


/**
 *******************************************************************************
 * @CMD_GET 
 * MODULE_TDSCDMA_CAP 
 *
 *******************************************************************************
 */
#define CMD_TDSCDMA_GET_SNIFFER_CFG            0x1113
#define CMD_TDSCDMA_GET_WIRELESS_STATE         0x1114
#define CMD_TDSCDMA_GET_SNIFFER_STATE          0x1115
#define CMD_TDSCDMA_GET_MODULE_STATUS          0x1116  /** < get GSM module current state > */

#define CMD_TDSCDMA_GET_MODULE_CFG             0x1117
#define CMD_TDSCDMA_GET_SNIFFER_RESULT         0x1118
#define CMD_TDSCDMA_GET_MODULE_INFO            0x1119


/**
 *******************************************************************************
 * @CMD_CONFIG 
 * MODULE_TDSCDMA_CAP 
 *
 *******************************************************************************
 */
#define CMD_TDSCDMA_EVT_STATUS                  0x1120   /**< Event for status */
#define CMD_TDSCDMA_EVT_WARNING           	    0x1121   /**< Event for warning */ 
#define CMD_TDSCDMA_EVT_PHONE           		0x1122   /**< Event for UE ID */ 
#define CMD_TDSCDMA_EVT_SNIFF            		0x1123   /**< Event for sniffer result */ 

/*
 * warning 
 *
 */

#define CMD_TDSCDMA_EVT_NSYNC                   0x1130
#define CMD_TDSCDMA_EVT_SYNC                    0x1131
#define CMD_TDSCDMA_EVT_NOT_RECV_IMSI           0x1132
#define CMD_TDSCDMA_EVT_LOST                    0x1133

/******** End of TDSCDMA Command Code Definitions *******************************/ 

/******** START of WIFI Command Code Definitions ********************************/
#define CMD_WIFI_HEARTBEAT                      0x0601
#define CMD_WIFI_RESTART                        0x0602 /**< Restart wifi */
#define CMD_WIFI_WIRELESS_OFF                   0x0603 /**< Shut wifi transmitter */
#define CMD_WIFI_WIRELESS_ON                    0x0604 /**< Turn wifi transmitter */
#define CMD_WIFI_CFG_WIRELESS                   0x0606 /**                        */

#define CMD_WIFI_GET_MODULE_STATUS              0x0607  /** < get GSM module current state > */

#define CMD_EVT_WIFI_MAC                        0x0608

/******** END of WIFI Command Code Definitions **********************************/

/******** Start Scanner Command Code Definitions ********************************/
#define CMD_LTE_DO_SNIFFER                      0x0801
#define CMD_WCDMA_DO_SNIFFER                    0x0802
#define CMD_SCANNER_GSM_DO_SNIFFER              0x0803
#define CMD_GET_LTE_RESULT                      0x0804
#define CMD_GET_WCDMA_RESULT                    0x0805
#define CMD_SCANNER_GET_GSM_RESULT              0x0806

#define CMD_WCDMA_EVT_SNIFF                     0x0810
#define CMD_LTE_EVT_SNIFF                       0x0811
/******** END of Scanner Command Code Definitions *******************************/

/******** PA Command Code Definitions *********************************/

#define CMD_CODE_PA_SWITCH_OFF                  0x0A00
#define CMD_CODE_PA_SWITCH_ON                   0x0A01
#define CMD_CODE_PA_RESET                       0x0A02
#define CMD_CODE_UP_ATT                         0x0A03
#define CMD_CODE_DN_ATT                         0x0A04
#define CMD_CODE_TEMP_THRESHOLD					0x0A09
#define CMD_CODE_POWER_THRESHOLD				0x0A0A

#define CMD_CODE_SET_VAILD_PA                   0x0A05

#define CMD_CODE_GET_PA_SWITCH               	0X0A40
#define CMD_CODE_GET_PA_TEMP                   	0x0A41
#define CMD_CODE_GET_PA_UP_ATT                	0X0A42
#define CMD_CODE_GET_PA_DN_ATT                 	0X0A43
#define CMD_CODE_GET_PA_DN_POWER                0x0A44
#define CMD_CODE_GET_PA_DN_10_POWER          	0x0A45
#define CMD_CODE_GET_PA_STATE                   0x0A46
#define CMD_CODE_GET_PA_10_SWR                  0x0A47
#define CMD_CODE_GET_PA_SW_VER                  0x0A49
#define CMD_CODE_GET_TEMP_THRESHOLD				0x0A50
#define CMD_CODE_GET_POWER_THRESHOLD			0x0A51

#define CMD_EVT_PA_STATUS                       0x0A80

#define CMD_EVT_ALARM_PA_OVER_TEMP              0x0A81
#define CMD_EVT_ALARM_PA_OVER_POWER             0x0A82
#define CMD_EVT_ALARM_PA_SWR                    0x0A83
#define CMD_EVT_ALARM_PA_FAULT_PA               0x0A84
#define CMD_EVT_ALARM_PA_FAULT_LNA              0x0A85
#define CMD_EVT_ALARM_PA_SE_PA                  0x0A86
#define CMD_EVT_ALARM_PA_SE_LNA                 0x0A87


/******** End of PA Module Command Code Definitions********************/

/******** GPS Module Command Code Definitions********************/
#define CMD_CODE_GPS_STATUS                     0x0B10
#define CMD_CODE_GPS_EXPECTED_POSITION          0x0B11
#define CMD_CODE_GPS_ALERT_THRESHOLD            0x0B12
#define CMD_CODE_GPS_ALERT_MOVE                 0x0B80
#define CMD_CODE_GPS_ALERT_INFO                 0x0B81
/******** End of GPS Module Command Code Definitions********************/

/******** Eutran Command Code Definitions *********************************/
#define CMD_CODE_EUTRAN_START_SNIFFER           0X0C01
#define CMD_CODE_EUTRAN_GET_SNIFFER_STATUS      0X0C02
#define CMD_CODE_EUTRAN_STOP_SNIFFER            0X0C03
#define CMD_CODE_EUTRAN_RESET_SNIFFER           0X0C04
#define CMD_CODE_EUTRAN_CONFIG_RSSI             0X0C05
#define CMD_CODE_EUTRAN_GET_SNIFFER_RESULT      0X0C06
#define CMD_CODE_EUTRAN_GET_RSSI                0X0C07
#define CMD_EVT_EUTRAN_SNIFFER_RESULT           0x0C08
#define CMD_EVT_EUTRAN_UEID                     0x0C09
#define CMD_CODE_EUTRAN_CONFIG_CELL             0x0C0A
#define CMD_CODE_EUTRAN_UPDATE_CELL             0x0C0B
#define CMD_CODE_EUTRAN_SET_BBU_IP              0x0C0C
#define CMD_CODE_EUTRAN_INIT_CONFIG             0x0C0D
#define CMD_CODE_EUTRAN_TX_POWER_DB_CONFIG      0x0C0E
#define CMD_CODE_EUTRAN_SOFTWARE_VERSION_REQ    0x0C0F
#define CMD_CODE_EUTRAN_BBU_STATE_REQ           0x0C10
#define CMD_CODE_EUTRAN_BBU_REBOOT              0x0C11
#define CMD_CODE_EUTRAN_SYNC_MODE_SETTING       0x0C12
#define CMD_CODE_EUTRAN_BBU_UPGRADE             0x0C13
#define CMD_CODE_EUTRAN_SYNC_STATE_GET          0x0C14
#define CMD_CODE_EUTRAN_SHOW_BBU_INFO           0x0C15
#define CMD_CODE_EUTRAN_LOCATION_MODE_SETTING   0x0C16
#define CMD_CODE_EUTRAN_GPS_STATE_REQ           0x0C17
#define CMD_CODE_EUTRAN_CFG_AUTO_SNF            0x0C18
#define CMD_CODE_EUTRAN_REDIT_CONFIG            0x0C19
#define CMD_EVT_EUTRAN_NMM_DELAY_REPORT         0x0C1A
#define CMD_CODE_EUTRAN_STD_TX_POWER_CONFIG     0x0C1B
#define CMD_CODE_EUTRAN_STD_TX_POWER_GET        0x0C1C
#define CMD_CODE_EUTRAN_STD_TX_POWER_DB_GET     0x0C1D
#define CMD_CODE_EUTRAN_UEID_FILTER_SWITCH      0x0C1E
#define CMD_CODE_EUTRAN_BLACKLIST_SETTING       0x0C1F
#define CMD_CODE_EUTRAN_WORK_PERIOD_SETTING     0x0C20
#define CMD_CODE_EUTRAN_SET_SCAN_MODE			0x0C21
#define CMD_CODE_EUTRAN_CHANG_TELEOPERATOR      0x0C22
#define CMD_CODE_EUTRAN_LOCATION_ENABLE_SETTING 0x0C23
#define CMD_CODE_REDIRECT_INIT_CONFIG           0x0C24
#define CMD_EVT_EUTRAN_RSSI                     0x0C25

#define CMD_CODE_EUTRAN_PA_SWITCH_OFF           0x0CA0
#define CMD_CODE_EUTRAN_PA_SWITCH_ON            0x0CA1
#define CMD_CODE_EUTRAN_PA_RESET                0x0CA2
#define CMD_CODE_EUTRAN_PA_ATT                  0x0CA3

#define CMD_CODE_EUTRAN_GET_PA_STATE            0x0CA4
#define CMD_CODE_EUTRAN_GET_PA_TEMP             0x0CA5
#define CMD_CODE_EUTRAN_GET_PA_SWR              0x0CA6
#define CMD_CODE_EUTRAN_GET_PA_ATT              0x0CA7
#define CMD_CODE_EUTRAN_GET_PA_OUT_POWER        0x0CA8
#define CMD_CODE_EUTRAN_RT_PARA_CFG             0X0CA9
#define CMD_CODE_EUTRAN_LTE_SCAN                    0x0CAA
#define CMD_CODE_EUTRAN_INTERFERENCE_ENABLE       0x0CAB

#define CMD_EVT_EUTRAN_PA_STATUS                0x0CB0

#define CMD_EVT_EUTRAN_ALARM_PA_OVER_POWER      0x0CB1
#define CMD_EVT_EUTRAN_ALARM_PA_OVER_TEMP       0x0CB2
#define CMD_EVT_EUTRAN_ALARM_PA_SWR             0x0CB3
#define CMD_EVT_EUTRAN_ALARM_PA_FAULT_PA        0x0CB4
#define CMD_EVT_EUTRAN_ALARM_PA_FAULT_LNA       0x0CB5
#define CMD_EVT_EUTRAN_ALARM_PA_SE_PA           0x0CB6
#define CMD_EVT_EUTRAN_ALARM_PA_SE_LNA          0x0CB7
#define CMD_EVT_EUTRAN_BBU_STATE                0x0CB8
#define CMD_EVT_EUTRAN_NOT_RECV_IMSI            0x0CB9
#define CMD_EVT_EUTRAN_SNIFF                    0x0CBA
#define CMD_EVT_EUTRAN_LTE_SCAN_RES                     0x0CBB
#define CMD_EVT_EUTRAN_REPORT_BBU_EARFCN        0x0CBC
#define CMD_EVT_EUTRAN_BBU_LOST                 0x0CBD




/******** End of Eutran Module Command Code Definitions********************/

/******** DATAUPLOAD Command Code Definitions *********************************/

#define CMD_CODE_CONFIG_DATAUPLOAD              0x0E01

/******** End of DATAUPLOAD Module Command Code Definitions********************/


/******** Fep Command Code Definitions *********************************/

#define CMD_CODE_FEP_LOG_LEVEL                  0x0001
#define CMD_CODE_FEP_AUTO_SNIFFER               0x0002
#define CMD_CODE_FEP_DO_SNIFFER                 0x0003
#define CMD_CODE_FEP_CONFIG_CELL                0x0004
#define PARA_TYPE_EUTRAN_CONFIG_CELL            0x0b000001
#define CMD_CODE_FEP_UPGRADE                    0x0005
/******** End of Fep Module Command Code Definitions********************/

/******** 3G Command Code Definitions *********************************/

#define CMD_CODE_SMS_OFF                        0x0300
#define CMD_CODE_SMS_ON                         0x0301
#define CMD_CODE_SMS_REPORT                     0x0302
#define CMD_CODE_SEND_SMS                       0x0303
#define CMD_CODE_SMS_MAINT_ON                   0x0304
#define CMD_CODE_SMS_MAINT_OFF                  0x0305 
#define CMD_CODE_SMS_KEY                        0x0306
#define CMD_CODE_SMS_WORKMODE                   0x0307

#define CMD_CODE_GET_SIM_STATE                  0x0340
#define CMD_CODE_GET_SMS_STATE                  0x0341

#define CMD_EVT_ALARM_3G_CONN_UP                0x0380
#define CMD_EVT_ALARM_3G_CONN_DOWN              0x0381
#define CMD_EVT_ALARM_SMS_TASK_UP               0x0382
#define CMD_EVT_ALARM_SMS_TASK_CANTUP           0x0383
#define CMD_EVT_ALARM_SMS_TASK_DOWN             0x0384
#define CMD_EVT_ALARM_SMS_AT_FAIL               0x0385


/******** End of 3G Module Command Code Definitions********************/

/******** FWMgr Command Code Definitions *********************************/

#define CMD_CODE_SYS_UPGRADE                    0x0001
#define CMD_CODE_FWM_FACTORY_RESET              0x0502
#define CMD_CODE_FWM_INSTALL                    0X0503
#define CMD_CODE_FWM_DOWNING                    0x0504
#define CMD_CODE_FWM_UPGRADE_X86                0x0505

/******** End of FwMgr Module Command Code Definitions********************/

/******** FWMgr Command Code Definitions *********************************/

#define CMD_CODE_SYSMONITOR_HEARTBEAT           0x0E00
#define CMD_CODE_SYSMONITOR_TEST_MODULE         0x0E01
#define CMD_CODE_SYSMONITOR_STOP                0x0E02
/******** End of FwMgr Module Command Code Definitions********************/



/******** End of Command Code Definitions *********************************/




/******** Parameter Type Definitions **************************************/

/*
Name: return code
Description: response to command
Length: Fixed, 4 bytes
Possible Value: 
    RESULT_SUCCESS  0x0000 0000
    RESULT_DOING  0x0000 0001
    RESULT_FAILED  0x0000 0002
*/
#define PARA_TYPE_RESULT                        0x00000000
#define PARA_VALUE_RESULT_SUCCESS 0x00000000
#define PARA_VALUE_RESULT_DOING 0x00000001
#define PARA_VALUE_RESULT_FAILED 0x00000002

/*
Name: error code
Description: if reponse is RESULT_FAILED, this code give the reason. 
Length: Fixed,4 bytes
Possible Value: 
    The reason code defined by modules
*/
#define PARA_TYPE_ERROR_CODE                    0x00000001
// 0 is reserved
#define PARA_VALUE_ERROR_NO_ERROR  0x00000000
#define PARA_VALUE_ERROR_ILLEGAL_SRC  0x00000001
#define PARA_VALUE_ERROR_DST_MODULE_INACTIVE 0x00000002
#define PARA_VALUE_ERROR_DST_MODULE_BUSY  0x00000003
#define PARA_VALUE_ERROR_NO_MEMORY        0x00000004
#define PARA_VALUE_ERROR_UNKNOWN_CMDTYPE  0x00000005
#define PARA_VALUE_ERROR_UNKNOWN_CMDCODE  0x00000006
#define PARA_VALUE_ERROR_INVALID_CMDLENGTH  0x00000007
#define PARA_VALUE_ERROR_UNKNOWN_PARATYPE  0x00000008
#define PARA_VALUE_ERROR_INVALID_PARALENGTH  0x00000009
#define PARA_VALUE_ERROR_INVALID_PARAVALUE  0x00000000A
#define PARA_VALUE_ERROR_ILLEGAL_PARA_STRUCT 0x0000000B
#define PARA_VALUE_ERROR_NOT_ENOUGH_PARA  0x0000000C
#define PARA_VALUE_ERROR_GENERAL_ERROR  0x0000000D
#define PARA_VALUE_ERROR_BASEBAND_INACTIVE  0x0000000E

#define PARA_VALUE_ERROR_CANNOT_GET_ID           0x01000000

#define PARA_VALUE_ERROR_OPEN_DATABASE_FAILED 0x01040000
#define PARA_VALUE_ERROR_INSERT_RECORD_FAILED 0x01040001
#define PARA_VALUE_ERROR_DELETE_RECORD_FAILED 0x01040002
#define PARA_VALUE_ERROR_BWLIST_DATAFLOW_BUSY 0x01040003
#define PARA_VALUE_ERROR_NOT_BWLISTG_DATAFLOW_PEER  0x01040004


#define PARA_VALUE_ERROR_END_NOT_GREATER_THAN_BEGIN 0x01050000
#define PARA_VALUE_ERROR_NUM_OUT_OF_RANGE           0x01050001
#define PARA_VALUE_ERROR_DATAFLOW_BUSY              0x01050002
#define PARA_VALUE_ERROR_NOT_DATAFLOW_PEER          0x01050003
#define PARA_VALUE_ERROR_NO_DB                      0x01050004
#define PARA_VALUE_ERROR_COMPLETED_PARTLY           0x01050005

#define PARA_VALUE_ERROR_PM_OK                      0x01070000
#define PARA_VALUE_ERROR_PM_NOK                     0x01070001
#define PARA_VALUE_ERROR_PM_NOT_FOUND               0x01070002
#define PARA_VALUE_ERROR_PM_OFF                     0x01070003
#define PARA_VALUE_ERROR_PM_NOT_SUPPORTED           0x01070004
#define PARA_VALUE_ERROR_PM_ERR_PARAM               0x01070005

#define PARA_VALUE_ERROR_GSMBASEBAND_INACTIVE       0x01090000
#define PARA_VALUE_ERROR_INVALID_PARAMETERS         0x01090001

#define PARA_VALUE_ERROR_PA_OK                      0x010A0000
#define PARA_VALUE_ERROR_PA_NOK                     0x010A0001
#define PARA_VALUE_ERROR_PA_NOT_FOUND               0x010A0002
#define PARA_VALUE_ERROR_PA_OFF                     0x010A0003
#define PARA_VALUE_ERROR_PA_NOT_SUPPORTED           0x010A0004
#define PARA_VALUE_ERROR_PA_UART_READ_ZERO          0x010A0005
#define PARA_VALUE_ERROR_PA_UART                    0x010A0006
#define PARA_VALUE_ERROR_PA_UART_READ               0x010A0007
#define PARA_VALUE_ERROR_PA_UART_WRITE              0x010A0008
#define PARA_VALUE_ERROR_PA_MAGIC                   0x010A0009
#define PARA_VALUE_ERROR_PA_CRC                     0x010A000A
#define PARA_VALUE_ERROR_PA_MOD_ADDR                0x010A000B
#define PARA_VALUE_ERROR_PA_COM_CODE                0x010A000C
#define PARA_VALUE_ERROR_PA_CMD_SIZE                0x010A000D
#define PARA_VALUE_ERROR_PA_RSP_FLAG                0x010A000E
#define PARA_VALUE_ERROR_PA_PARAM                   0x010A000F

#define PARA_VALUE_ERROR_WCDMA_DAC_FAILED           0x01100000
#define PARA_VALUE_ERROR_WCDMA_CONFIG_FAILED        0x01100001
#define PARA_VALUE_ERROR_WCDMA_TXSTOP_FAILED        0x01100002
#define PARA_VALUE_ERROR_WCDMA_TXSTART_FAILED       0x01100003
#define PARA_VALUE_ERROR_WCDMA_AUTOLAC_FAILED       0x01100004
#define PARA_VALUE_ERROR_WCDMA_POWER_FAILED         0x01100005
#define PARA_VALUE_ERROR_WCDMA_RESTART_FAILED       0x01100006
#define PARA_VALUE_ERROR_WCDMA_TIME_FAILED          0x01100007
#define PARA_VALUE_ERROR_WCDMA_IP_FAILED            0x01100008
#define PARA_VALUE_ERROR_WCDMA_PILOT_FAILED         0x01100009

#define PARA_VALUE_ERROR_TDSCDMA_DAC_FAILED         0x01110000
#define PARA_VALUE_ERROR_TDSCDMA_CONFIG_FAILED      0x01110001
#define PARA_VALUE_ERROR_TDSCDMA_TXSTOP_FAILED      0x01110002
#define PARA_VALUE_ERROR_TDSCDMA_TXSTART_FAILED     0x01110003
#define PARA_VALUE_ERROR_TDSCDMA_AUTOLAC_FAILED     0x01110004
#define PARA_VALUE_ERROR_TDSCDMA_POWER_FAILED       0x01110005
#define PARA_VALUE_ERROR_TDSCDMA_RESTART_FAILED     0x01110006
#define PARA_VALUE_ERROR_TDSCDMA_TIME_FAILED        0x01110007
#define PARA_VALUE_ERROR_TDSCDMA_IP_FAILED          0x01110008
#define PARA_VALUE_ERROR_TDSCDMA_PILOT_FAILED       0x01110009

#define PARA_VALUE_ERROR_XG_OK                      0x03000000
#define PARA_VALUE_ERROR_XG_NOK                     0x03000001
#define PARA_VALUE_ERROR_XG_NOT_FOUND               0x03000002
#define PARA_VALUE_ERROR_XG_SMS_OFF                 0x03000003
#define PARA_VALUE_ERROR_XG_SMS_ON                  0x03000004
#define PARA_VALUE_ERROR_XG_NOT_SUPPORTED           0x03000005
#define PARA_VALUE_ERROR_XG_UART_READ_ZERO          0x03000006
#define PARA_VALUE_ERROR_XG_UART                    0x03000007
#define PARA_VALUE_ERROR_XG_UART_READ               0x03000008
#define PARA_VALUE_ERROR_XG_UART_WRITE              0x03000009
#define PARA_VALUE_ERROR_XG_PARAM                   0x0300000A

#define PARA_TYPE_UPGRADE_TYPE                      0x05000011


#define PARA_VALUE_ERROR_FW_OK                      0x05000000
#define PARA_VALUE_ERROR_FW_NOK                     0x05000001
#define PARA_VALUE_ERROR_FW_NOT_FOUND               0x05000002
#define PARA_VALUE_ERROR_FW_OFF                     0x05000003
#define PARA_VALUE_ERROR_FW_NOT_SUPPORTED           0x05000004
#define PARA_VALUE_ERROR_FW_ERR_PARAM               0x05000005
#define PARA_VALUE_ERROR_FW_ERR_MD5SUM              0x05000006
#define PARA_VALUE_ERROR_FW_ERR_DOWNLOAD            0x05000007
#define PARA_VALUE_ERROR_FW_ERR_UPG_IN_PROGRESS     0x05000008
#define PARA_VALUE_ERROR_FW_ERR_DECOMPRESS          0x05000009
#define PARA_VALUE_ERROR_FW_ERR_WRITE_KERNEL        0x0500000A
#define PARA_VALUE_ERROR_FW_ERR_WRITE_ROOTFS        0x0500000B
#define PARA_VALUE_ERROR_FW_ERR_WRITE_X86APP        0x0500000C



/*
Name: status code
Description: status in report. 
Length: Fixed 4 bytes
Possible Value: normal or exception
    STATUS_OK   0x00000000
    STATUS_EX   0x00000001
*/
#define PARA_TYPE_STATUS                        0x00000002
#define PARA_VALUE_STATUS_OK 0x00000000
#define PARA_VALUE_STATUS_EX 0x00000001

/*
Name: status exception
Description: status in report. 
Length: Fixed 4 bytes
Possible Value: 
    defined by modules

*/
#define PARA_TYPE_EXCEPTION_CODE                0x00000003




/*
Name: status exception description
Description: Optional parameter. As addition to exception code. 
Length: array of char
Possible Value: 
    defined by modules

*/

#define PARA_TYPE_EXCEPTION_MESSAGE             0x00000004


/*
Name: timestamp
Description: 
Length: fixed 8 bytes
Possible Value: seconds since 1970
*/
#define PARA_TYPE_TIMESTAMP                     0x00000005

/*
Name: delay
Description: 
Length: fixed 4 bytes
Possible Value: 
     delayed seconds 
*/
#define PARA_TYPE_DELAY                     0x00000006



/******** System Management Parameter Type Definitions************************/
/*
Name: client ID
Description: ID for external client  
Length: Fixed 4 bytes
Possible Value: 
    0x001 - 0x0FFE

*/
#define PARA_TYPE_SYS_CLIENT_ID				        0x01000000

/*
Name: LOG LEVEL
Description:   
Length: Fixed 4 bytes
Possible Value: 
    0 - 7

*/
#define PARA_TYPE_SYS_LOG_LEVEL				        0x01000001

/*
Name: DEBUG LEVEL
Description:   
Length: Fixed 4 bytes
Possible Value: 
    0 - 7

*/
#define PARA_TYPE_SYS_DEBUG_LEVEL				        0x01000002


/*
Name: device model
Description:   
Length: varible
Possible Value: 
    string
*/
#define PARA_TYPE_SYS_DEVICE_TYPE                   0x01000010

/*
Name: OS version
Description:
Length: varible
Possible Value:
   string
*/
#define PARA_TYPE_SYS_OS_VERSION                    0x01000027
/*
Name:hardware verison
Description:
Length: varible
Possible Value:
   string
*/

#define PARA_TYPE_SYS_HW_VERSION                    0x01000028 

/*
Name:software original verison
Description:
Length: varible
Possible Value:
   string
*/

#define PARA_TYPE_SYS_SW_ORIGINAL_VERSION               0x01000029

/*
Name:current  verison num
Description:
Length: varible
Possible Value:
   string
*/

#define PARA_TYPE_SYS_SW_CURRVERNUM                    0x01000030  
    
/*
Name: software current versions
Description:   
Length: varible
Possible Value: 
    string
*/
#define PARA_TYPE_SYS_SW_VERSION                    0x01000011
/*
Name: software build date
Description:   
Length: varible
Possible Value: 
    string
*/
#define PARA_TYPE_SYS_SW_BUILDDATE                    0x01000012

/*
Name: software build time
Description:   
Length: varible
Possible Value: 
    string
*/
#define PARA_TYPE_SYS_SW_BUILDTIME                    0x01000013

/*
Name: software compiler version
Description:   
Length: varible
Possible Value: 
    string
*/
#define PARA_TYPE_SYS_SW_COMPILER_VERSION                    0x01000014

/*
Name: MAC address of wan interfaces 
Description:   
Length: Fixed 6 bytes
Possible Value: 
    
*/
#define PARA_TYPE_SYS_MAC_ADDR                      0x01000015

/*
Name: IP address of wan interfaces 
Description: IP address (big endian.)   
Length: Fixed 4 bytes
Possible Value: 
    
*/
#define PARA_TYPE_SYS_IP_ADDR                      0x01000016

/*
Name: CPU usage
Description:   percent of usage 
Length: U32, FIXED 4 bytes
Possible Value: 
0-100    
*/

#define PARA_TYPE_SYS_CPU_USAGE                     0x01000020 

/*
Name: MEMORY usage
Description:   percent of usage 
Length: U32, FIXED 4 bytes
Possible Value: 
0-100    
*/

#define PARA_TYPE_SYS_MEM_USAGE                         0x01000021 

/*
Name: data storage usage
Description:   percent of usage 
Length: U32, FIXED 4 bytes
Possible Value: 
0-100    
*/

#define PARA_TYPE_DATA_STORAGE_USAGE                    0x01000024 

/*
Name: system temperature
Description:
Length: S32, Fixed 4 bytes
Possible Value:
-128  - 127
*/

#define PARA_TYPE_SYS_TEMPERATURE                      0x01000025


/*
Name: PA status, system format
Description:
     struct tagPASTATUS {
    U8 ID;
    U8 state;
    S8 temp;
    U8 swr;
    U8 outPower;
    U8 lna_attenuation;
    U8 pa_attenuation;
}PASTATUS;

Length: sizeof(PASTATUS)
Possible Value:

*/
#define PARA_TYPE_SYS_PASTATUS                        0x01000026

/*
Name: restart status
Description:    normal or abnormal restart
Length: U32, Fixed 4 bytes
Possible Value: 
0: normal
1: abnormal
*/

#define PARA_TYPE_STARTUP_STATUS                          0x01000080


#define PARA_TYPE_SYS_REBOOT_HOUR                      0x01000031
#define PARA_TYPE_SYS_REBOOT_MINUTE                    0x01000032

#define PARA_TYPE_SYS_REMOTE_SSH_PORT                  0x01000033
#define PARA_TYPE_SYS_REMOTE_SSH_USER                  0x01000034
#define PARA_TYPE_SYS_REMOTE_SSH_PASSWORD              0x01000035
#define PARA_TYPE_SYS_REMOTE_SSH_SERVERIP              0x01000036
/******** End of System Management Parameter Type Definitions******************/

/******** Message Processor Parameter Type Definitions************************/
/*
Name: forward destination 
Description: the target that the followed message should be forwarded to 
Length: U32,Fixed 4 bytes
Possible Value: 
    1 - 0x0FFE

*/
#define PARA_TYPE_MSG_FORWARD_DEST                       0x01010000

/*
Name: forward src 
Description: where the followed message is from 
Length: U32,Fixed 4 bytes
Possible Value: 
    1 - 0x0FFE

*/
#define PARA_TYPE_MSG_FORWARD_SRC                       0x01010001

/*
Name: message to be forwarded 
Description:  
Length: 
Possible Value: 
    depends on implementation of specific destination

*/
#define PARA_TYPE_MSG_FORWARD_MSG                       0x01010002


/******** End of Message Processor Parameter Type Definitions******************/


/******** Data Processor Parameter Type Definitions************************/
/*
Name: list operation
Description: the operation on blacklist or whitelist. 
Length: Fixed 4 bytes
Possible Value: 
    ADD
    DEL

*/
#define PARA_TYPE_DATAPROC_LIST_ACTION                   0x01040000
#define PARA_VALUE_DATAPROC_ACTION_ADD    0x0000001
#define PARA_VALUE_DATAPROC_ACTION_DEL    0x0000000

/*
Name: IMSI record 
Description:  
Length: Fixed 16 bytes
Possible Value: 
    IMSI string
    
*/
#define PARA_TYPE_DATAPROC_RECORD_IMSI                  0x01040001

/*
Name: IMEI record 
Description:  
Length: Fixed 16 bytes
Possible Value: 
    IMEI string    
*/
#define PARA_TYPE_DATAPROC_RECORD_IMEI                  0x01040002

/*
Name: number of record 
Description: config  the number of record within one data flow message  
Length: Fixed 4 bytes
Possible Value: 
    1 - 150    
*/

#define PARA_TYPE_DATAPROC_NUM_RECORDS_PER_MESSAGE      0x01040003

/*
Name: Has more data? 
Description:   
Length: Fixed 4 bytes
Possible Value: 
 0: no more data
 1: has more data
*/

#define PARA_TYPE_DATAPROC_HAS_MORE_DATA                 0x01040004

#define PARA_TYPE_DATAPROC_IMSI_DATA                0x01040005
#define PARA_TYPE_DATAPROC_IMEI_DATA                0x01040006

#define PARA_TYPE_DATAPROC_PHONE_INFO               0x01040007

#define PARA_TYPE_DATAPROC_UPLOAD_MODE              0x01040008
#define PARA_VALUE_DATAPROC_MODE_NORMAL             0x00000000
#define PARA_VALUE_DATAPROC_MODE_NOT_SEND_ISMI	    0x00000001
#define PARA_VALUE_DATAPROC_MODE_FTP                0x00000002             
#define PARA_VALUE_DATAPROC_NOT_SAVE_IMSI           0x00000003
#define PARA_VALUE_DATAPROC_NOT_SAVE_DATAM          0x00000004
/******** End of Data Processor Parameter Type Definitions******************/


/******** Data Storage Parameter Type Definitions************************/

/*
Name: start time
Description: 
Length: U64, fixed 8 bytes
Possible Value: seconds sine 1970
*/
#define PARA_TYPE_DATASTOR_BEGIN_TIME 0x01050000

/*
Name: end time
Description: 
Length: U64, fixed 8 bytes
Possible Value: seconds sine 1970

Note: the time range is [begin_time, end_time)
*/
#define PARA_TYPE_DATASTOR_END_TIME 0x01050001

/*
Name: number 
Description: number of records within one message, default is 10
Length: fixed 4 bytes
Possible Value: 1 - 50
*/
#define PARA_TYPE_DATASTOR_NUM_RECORDS_PER_MESSAGE 0x01050002


/*
Name: phone info
Description: whether more data is avaliable
Length: varible
Possible Value: 
 struct phone_info
 {
	U64 uptime;
	string IMSI;
	string IMEI;
	string TMSI;
 }

 string is ended with '\0'; null string is only one charater '\0'
*/
#define PARA_TYPE_DATASTOR_PHONE_INFO 0x01050003

/*
Name: more data?
Description: whether more data is avaliable
Length: fixed 4 bytes
Possible Value: 0 or 1
    0: no more data
    1: has more data
*/
#define PARA_TYPE_DATASTOR_HAS_MORE_DATA 0x01050004

/*
Name: steps 
Description:  data  is obsoleted step by step. one hour per step. default is 1
Length: fixed 4 bytes.
Possible Value: 
    >0
*/
#define PARA_TYPE_DATASTOR_OBSOLETE_STEPS 0x01050005

/*
Name: hours 
Description:  max num of hours of data to be stored
Length: fixed 4 bytes.
Possible Value: 
    any
*/
#define PARA_TYPE_DATASTOR_STORAGE_HOURS 0x01050006

/*
Name : data num
Descriptin: get each day the number of data
Length: fixed 4 * days bytes
*/
#define PARA_TYPE_DATASTOR_EACH_DAY_NUM  0x01050008

/*Name: search day
Description: get historical data from local
Length: 8 byte
*/
#define PARA_TYPE_DATASTOR_SR_DAY        0x01050009

/*Name: Begin num
Description: historical data begin num
Length: 4 byte
*/
#define PARA_TYPE_DATASTOR_BEGIN_NUM     0x0105000a

/*Name: end num
Description: historical data end num, end num - begin_num > 50
Lenth 4 byte
*/
#define PARA_TYPE_DATASTOR_END_NUM       0x0105000b

/******** End of Data Storage Parameter Type Definitions******************/


/******** PowerMgr Module Parameter Type Definitions*****************/

/*
Name: GPIO pin control
Description:   
Length: 1 byte
Possible Value: 
*/

#define PARA_TYPE_PM_GPIO_CTRL_PIN                 0x01070000

#ifdef NEW_POWER
#define PARA_VALUE_PM_GPIO_PIN_FDD1    0x01    /* FDD 1.8 for unicom */
#define PARA_VALUE_PM_GPIO_PIN_FDD2    0x02    /* FDD 1.8 for cdma  */
#define PARA_VALUE_PM_GPIO_PIN_TDD1    0x03   /* TDD 1.9 for cmcc */
#define PARA_VALUE_PM_GPIO_PIN_TDD2    0x04    /* TDD 2.6 for cmcc */
#define PARA_VALUE_PM_GPIO_PIN_GPS     0x05    /* gps reset n */
#define PARA_VALUE_PM_GPIO_PIN_GSM     0x06
#define PARA_VALUE_PM_GPIO_PIN_POWER   0x07
#define PARA_VALUE_PM_GPIO_PIN_GRAND   0x08
#else
#define PARA_VALUE_PM_GPIO_PIN_PA1    0x01    /* pa 0 */
#define PARA_VALUE_PM_GPIO_PIN_PA2    0x02    /* pa 1 */
#define PARA_VALUE_PM_GPIO_PIN_BB1    0x03    /* lte baseband 0 */
#define PARA_VALUE_PM_GPIO_PIN_BB2    0x04    /* lte baseband 1 */
#define PARA_VALUE_PM_GPIO_PIN_BB3    0x05    /* gsm baseband */
#define PARA_VALUE_PM_GPIO_PIN_GPS    0x06    /* gps reset n */
#endif

/******** End of PowerMgr Module Parameter Type Definitions*****************/


/******** GSM Parameter Type Definitions***************************************/
// parameter type

//UE ID
#define PARA_TYPE_GSM_UEID_IMSI         0x01090000
#define PARA_TYPE_GSM_UEID_IMEI         0x01090001
#define PARA_TYPE_GSM_UEID_TMSI         0x01090002

//Sniffer result
#define PARA_TYPE_GSM_SNIF_FREQ                      0x01090003
#define PARA_TYPE_GSM_SNIF_RSSI                      0x01090004

//Wireless parameters
#define PARA_TYPE_GSM_WIRELESS_CONFIGURATION         0x01090005
#define PARA_TYPE_GSM_SNIFFER_CONFIGURATION          0x01090006


//Carrier Index
#define PARA_TYPE_GSM_CARRIER_INDEX     0x01090008
#define PARA_VALUE_GSM_CARRIER_1        0x00000000
#define PARA_VALUE_GSM_CARRIER_2        0x00000001


//System parameters
#define PARA_TYPE_GSM_TIME              0x01090009         /**< set system time for gsm module */

#define PARA_TYPE_GSM_BASEBAND_STATUS        0x01090010
#define PARA_VALUE_GSM_BASEBAND_PACKETLOSS   0x00000000
#define PARA_VALUE_GSM_BASEBAND_NSYNC        0x00000001
#define PARA_VALUE_GSM_BASEBAND_SYNC         0x00000002

//gsm module current state 
#define PARA_TYPE_GSM_MODULE_STATUS     0x01090011

#define PARA_TYPE_GSM_TEMP_STATUS         0x01090012
#define PARA_VALUE_GSM_TEMP_FIRST_LEVEL   0x00000000
#define PARA_VALUE_GSM_TEMP_SECOND_LEVEL  0x00000001
#define PARA_VALUE_GSM_TEMP_RETURN_NORMAL 0x00000002

#define PARA_TYPE_GSM_SEND_COUNTER        0x01090013

#define PARA_TYPE_GSM_WILELESS_STATE        0x01090014
#define PARA_VALUE_GSM_WILELESS_OFF         0x00000000
#define PARA_VALUE_GSM_WILELESS_ON         0x00000001

#define PARA_TYPE_GSM_SNIFFER_STATE        0x01090015
#define PARA_VALUE_GSM_SNIFFER_OFF         0x00000000
#define PARA_VALUE_GSM_SNIFFER_ON         0x00000001

#define PARA_TYPE_GSM_TEMP_INFO         0x01090016

#define PARA_TYPE_GSM_NO_PHONE_INFO     0x01090017

#define PARA_TYPE_SNIFFER_OPERATER      0x01090018


#define PARA_VALUE_SNIFFER_CMCC         0x00000000
#define PARA_VALUE_SNIFFER_UNICOM       0x00000001

#define PARA_TYPE_SNIFFER_RESULT        0x01090019
#define PARA_TYPE_SNIFFER_BUSY          0x01090020
#define PARA_TYPE_NO_NEIGHBOR_CELL      0x01090021

#define PARA_TYPE_RECURING_INTERVAL     0x01090022

#define PARA_TYPE_TX_ATTUATION          0x01090023
#define PARA_TYPE_GSM_HEARTBEAT         0x01090024

#define PARA_TYPE_GSM_RF_CONFIG         0x01090025
#define PARA_TYPE_GSM_LAC               0x01090026

#define PARA_TYPE_GSM_VERSION           0x01090027


//temprature value should be U32

/******** End of GSM Parameter Type Definitions***************************************/


/******** CDMA Parameter Type Definitions***************************************/
// parameter type

//UE ID
#define PARA_TYPE_CDMA_UEID_IMSI         0x010D0000
#define PARA_TYPE_CDMA_UEID_IMEI         0x010D0001
#define PARA_TYPE_CDMA_UEID_TMSI         0x010D0002

//Sniffer result
#define PARA_TYPE_CDMA_SNIF_FREQ                      0x010D0003
#define PARA_TYPE_CDMA_SNIF_RSSI                      0x010D0004

//Wireless parameters
#define PARA_TYPE_CDMA_WIRELESS_CONFIGURATION         0x010D0005
#define PARA_TYPE_CDMA_SNIFFER_CONFIGURATION          0x010D0006


//Carrier Index
#define PARA_TYPE_CDMA_CARRIER_INDEX     0x010D0008
#define PARA_VALUE_CDMA_CARRIER_1        0x00000000
#define PARA_VALUE_CDMA_CARRIER_2        0x00000001

//System parameters
#define PARA_TYPE_CDMA_TIME              0x010D0009         /**< set system time for gsm module */

#define PARA_TYPE_CDMA_BASEBAND_STATUS        0x010D0010
#define PARA_VALUE_CDMA_BASEBAND_PACKETLOSS   0x00000000
#define PARA_VALUE_CDMA_BASEBAND_NSYNC        0x00000001
#define PARA_VALUE_CDMA_BASEBAND_SYNC         0x00000002

//gsm module current state 
#define PARA_TYPE_CDMA_MODULE_STATUS     0x010D0011

#define PARA_TYPE_CDMA_TEMP_STATUS         0x010D0012
#define PARA_VALUE_CDMA_TEMP_FIRST_LEVEL   0x00000000
#define PARA_VALUE_CDMA_TEMP_SECOND_LEVEL  0x00000001
#define PARA_VALUE_CDMA_TEMP_RETURN_NORMAL 0x00000002

#define PARA_TYPE_CDMA_SEND_COUNTER        0x010D0013

#define PARA_TYPE_CDMA_WILELESS_STATE        0x010D0014
#define PARA_VALUE_CDMA_WILELESS_OFF         0x00000000
#define PARA_VALUE_CDMA_WILELESS_ON         0x00000001

#define PARA_TYPE_CDMA_SNIFFER_STATE        0x010D0015
#define PARA_VALUE_CDMA_SNIFFER_OFF         0x00000000
#define PARA_VALUE_CDMA_SNIFFER_ON         0x00000001

#define PARA_TYPE_CDMA_TEMP_INFO         0x010D0016

#define PARA_TYPE_CDMA_NO_PHONE_INFO     0x010D0017

#define PARA_TYPE_CDMA_SNIFFER_OPERATER      0x010D0018


#define PARA_VALUE_SNIFFER_CMCC         0x00000000
#define PARA_VALUE_SNIFFER_UNICOM       0x00000001

#define PARA_TYPE_CDMA_SNIFFER_RESULT        0x010D0019
#define PARA_TYPE_CDMA_SNIFFER_BUSY          0x010D0020
#define PARA_TYPE_CDMA_NO_NEIGHBOR_CELL      0x010D0021

#define PARA_TYPE_CDMA_RECURING_INTERVAL     0x010D0022

#define PARA_TYPE_CDMA_TX_ATTUATION          0x010D0023
#define PARA_TYPE_CDMA_HEARTBEAT         0x010D0024

#define PARA_TYPE_CDMA_RSSI              0x010D0025

//#define PARA_TYPE_CDMA_WIRELESS_CONFIGURATION         0x010D0026

//temprature value should be U32

/******** End of CDMA Parameter Type Definitions***************************************/

/******** WCDMA Parameter Type Definitions***************************************/
// parameter type

//UE ID
#define PARA_TYPE_WCDMA_UEID_IMSI                      0x01100000
#define PARA_TYPE_WCDMA_UEID_IMEI                      0x01100001
#define PARA_TYPE_WCDMA_UEID_TMSI                      0x01100002

//Wireless parameters
#define PARA_TYPE_WCDMA_WIRELESS_CONFIGURATION         0x01100003
#define PARA_TYPE_WCDMA_WIRELESS_CONFIG_NODEB          0x01100004
#define PARA_TYPE_WCDMA_WIRELESS_CONFIG_MCC            0x01100005
#define PARA_TYPE_WCDMA_WIRELESS_CONFIG_LAC            0x01100006
#define PARA_TYPE_WCDMA_WIRELESS_CONFIG_RAC            0x01100007
#define PARA_TYPE_WCDMA_WIRELESS_CONFIG_ARFCN          0x01100008
#define PARA_TYPE_WCDMA_WIRELESS_CONFIG_PSC            0x01100009
#define PARA_TYPE_WCDMA_WIRELESS_CONFIG_CELLID         0x0110000a
#define PARA_TYPE_WCDMA_WIRELESS_CONFIG_AUTOLAC        0x0110000b
#define PARA_TYPE_WCDMA_WIRELESS_CONFIG_DAC            0x0110000c
#define PARA_TYPE_WCDMA_WIRELESS_CONFIG_TXPOWER        0x0110000d
#define PARA_TYPE_WCDMA_WIRELESS_CONFIG_PILOT          0x0110000e


//System parameters
/**< set system time for wcdma module */
#define PARA_TYPE_WCDMA_TIME                           0x0110000f         

#define PARA_TYPE_WCDMA_BASEBAND_STATUS                0x01100010
#define PARA_VALUE_WCDMA_BASEBAND_PACKETLOSS           0x00000000
#define PARA_VALUE_WCDMA_BASEBAND_NSYNC                0x00000001
#define PARA_VALUE_WCDMA_BASEBAND_SYNC                 0x00000002

//wcdma module current state 
#define PARA_TYPE_WCDMA_MODULE_STATUS                  0x01100011

#define PARA_TYPE_WCDMA_TEMP_STATUS                    0x01100012
#define PARA_VALUE_WCDMA_TEMP_FIRST_LEVEL              0x00000000
#define PARA_VALUE_WCDMA_TEMP_SECOND_LEVEL             0x00000001
#define PARA_VALUE_WCDMA_TEMP_RETURN_NORMAL            0x00000002

#define PARA_TYPE_WCDMA_SEND_COUNTER                   0x01100013

#define PARA_TYPE_WCDMA_WILELESS_STATE                 0x01100014
#define PARA_VALUE_WCDMA_WILELESS_OFF                  0x00000000
#define PARA_VALUE_WCDMA_WILELESS_ON                   0x00000001

#define PARA_TYPE_WCDMA_RECURING_INTERVAL              0x01100022

#define PARA_TYPE_WCDMA_TX_ATTUATION                   0x01100023
#define PARA_TYPE_WCDMA_HEARTBEAT                      0x01100024

#define PARA_TYPE_WCDMA_RSSI                           0x01100025

/******** End of CDMA Parameter Type Definitions***********************/

/******** TDSCDMA Parameter Type Definitions***************************/
//UE ID
#define PARA_TYPE_TDSCDMA_UEID_IMSI                      0x01110000
#define PARA_TYPE_TDSCDMA_UEID_IMEI                      0x01110001
#define PARA_TYPE_TDSCDMA_UEID_TMSI                      0x01110002

//Wireless parameters
#define PARA_TYPE_TDSCDMA_WIRELESS_CONFIGURATION         0x01110003
#define PARA_TYPE_TDSCDMA_WIRELESS_CONFIG_MNC            0x01110004
#define PARA_TYPE_TDSCDMA_WIRELESS_CONFIG_MCC            0x01110005
#define PARA_TYPE_TDSCDMA_WIRELESS_CONFIG_LAC            0x01110006
#define PARA_TYPE_TDSCDMA_WIRELESS_CONFIG_RAC            0x01110007
#define PARA_TYPE_TDSCDMA_WIRELESS_CONFIG_ARFCN          0x01110008
#define PARA_TYPE_TDSCDMA_WIRELESS_CONFIG_PSC            0x01110009
#define PARA_TYPE_TDSCDMA_WIRELESS_CONFIG_CELLID         0x0111000a
#define PARA_TYPE_TDSCDMA_WIRELESS_CONFIG_AUTOLAC        0x0111000b
#define PARA_TYPE_TDSCDMA_WIRELESS_CONFIG_DAC            0x0111000c
#define PARA_TYPE_TDSCDMA_WIRELESS_CONFIG_TXPOWER        0x0111000d


//System parameters
/**< set system time for wcdma module */
#define PARA_TYPE_TDSCDMA_TIME                           0x0111000e         

#define PARA_TYPE_TDSCDMA_BASEBAND_STATUS                0x01110010
#define PARA_VALUE_TDSCDMA_BASEBAND_PACKETLOSS           0x00000000
#define PARA_VALUE_TDSCDMA_BASEBAND_NSYNC                0x00000001
#define PARA_VALUE_TDSCDMA_BASEBAND_SYNC                 0x00000002

//wcdma module current state 
#define PARA_TYPE_TDSCDMA_MODULE_STATUS                  0x01110011

#define PARA_TYPE_TDSCDMA_TEMP_STATUS                    0x01110012
#define PARA_VALUE_TDSCDMA_TEMP_FIRST_LEVEL              0x00000000
#define PARA_VALUE_TDSCDMA_TEMP_SECOND_LEVEL             0x00000001
#define PARA_VALUE_TDSCDMA_TEMP_RETURN_NORMAL            0x00000002

#define PARA_TYPE_TDSCDMA_SEND_COUNTER                   0x01110013

#define PARA_TYPE_TDSCDMA_WILELESS_STATE                 0x01110014
#define PARA_VALUE_TDSCDMA_WILELESS_OFF                  0x00000000
#define PARA_VALUE_TDSCDMA_WILELESS_ON                   0x00000001

#define PARA_TYPE_TDSCDMA_SOFTWARE_VERSION               0x01110015
#define PARA_TYPE_TDSCDMA_SYNC_STATUS                    0x01110016

#define PARA_TYPE_TDSCDMA_RECURING_INTERVAL              0x01110022

#define PARA_TYPE_TDSCDMA_TX_ATTUATION                   0x01110023
#define PARA_TYPE_TDSCDMA_HEARTBEAT                      0x01110024

#define PARA_TYPE_TDSCDMA_RSSI                           0x01110025

/******** End of TDSCDMA Parameter Type Definitions*******************/

/******** Start of WIFI Parameter Type Definitions*******************/
#define PARA_TYPE_WIFI_MAC_REPORT                        0x01060000
#define PARA_TYPE_WIFI_MODULE_STATUS                     0x01060001
#define PARA_TYPE_WIFI_RECAPT_TIME                       0x01060002

/******** End of WIFI Parameter Type Definitions*******************/

/******** PA Module Parameter Type Definitions************************/
/*
Name: PA Address
Description: for two pa case
Length: Fixed 1 bytes
Possible Value: 0 or 1
*/
#define PARA_TYPE_PA_ADDR                       0x010A0000
#define PARA_VALUE_PA_ADDR_0     0x00
#define PARA_VALUE_PA_ADDR_1     0x01


/*
Name: PA switch
Description: 
Length: Fixed 1 bytes
Possible Value: 0 or 1
*/
#define PARA_TYPE_PA_SWITCH      0x010A0001
#define PARA_VALUE_PA_OFF        0x00000000
#define PARA_VALUE_PA_ON         0x00000001

/*
Name: PA UPATT
Description: 
Length: 
Possible Value: 
*/
#define PARA_TYPE_UP_ATT                        0x010A0002

/*

Name: PA DNATT
Description: 
Length: 
Possible Value: 
*/

#define PARA_TYPE_DN_ATT                        0x010A0005


/*

Name: PA Temperature
Description: 
Length: 
Possible Value: 1 byte
*/




#define PARA_TYPE_PA_TEMP                       0x010A0003

/*

Name: PA 10 * Stationary Wave Ratio
Description: 
Length: 

Possible Value: 1 byte,
*/
#define PARA_TYPE_PA_10_SWR                        0x010A0004

#if 0
/*
Name: PA Output Power
Description: 
Length: 
Possible Value: 1 byte
*/
#define PARA_TYPE_PA_OUT_POWER                  0x010A0005
#endif

/*

Name: Is write att value to EEPROM
Description: 
Length: 
Possible Value: 1 byte
*/

#define PARA_TYPE_PA_ATT_SAVE_EEPROM            0x010A0006
#define PARA_VALUE_PA_ATT_SAVE_EEPROM_T 0x00
#define PARA_VALUE_PA_ATT_SAVE_EEPROM_F 0x01


/*
Name: PA STATE
Description: 
Length: 

Possible Value: 1 byte
*/
#define PARA_TYPE_PA_STATE           0x010A0007

/*

Name: PA DN_POWER
Description: 
Length: 
Possible Value: 1 byte
*/
#define PARA_TYPE_PA_DN_POWER            0x010A0008

/*
Name: PA_DN_10_POWER
Description: 
Length: 

Possible Value: 1 byte
*/
#define PARA_TYPE_PA_DN_10_POWER                      0x010A0009
#define PARA_TYPE_PA_TEMP_THRESHOLD					  0x010A000D
#define PARA_TYPE_PA_POWER_THRESHOLD				  0x010A000E
/*
Name: PA SW_VER
Description: 
Length: 
Possible Value: 10byte, byte 0 is low type byte 1 is high type, 8byte for reserve
*/
#define PARA_TYPE_PA_SW_VER                    0x010A000A


/*
Name: PA SW_VER
Description: 
Length: 
Possible Value: 10byte, byte 0 is low type byte 1 is high type, 8byte for reserve
*/
#define PARA_TYPE_VALID_PA                     0x010A000B

/******** End of PA Module Parameter Type Definitions*****************/


/******** GPS Module Parameter Type Definitions*****************/

/*
Name: GPS coordinate
Description:   
Length: FIXED 24 bytes
Possible Value: 
struct POSITION {
    double longitude;
    double latitude;
    double altitude;
} ;    
*/
#define PARA_TYPE_GPS_COORDINATE                      0x010B0000

/*
Name: GPS status
Description:   
Length: FIXED 4 bytes
Possible Value: 
0 offline
1 online
*/
#define PARA_TYPE_GPS_STATUS                      0x010B0001

/*
Name: GPS distance
Description:   distance from expected location
Length: double
Possible Value: 
 >= 0
 ;    
*/
#define PARA_TYPE_GPS_DISTANCE                      0x010B0002


/******** End of GPS Module Parameter Type Definitions*****************/

/******** Eutran Module Parameter Type Definitions*****************/
#define PARA_TYPE_EUTRAN_SNIFFER_BAND                       0x010C0001      
#define PARA_TYPE_EUTRAN_SNIFFER_EARFCN_RANGE               0x010C0002      
#define PARA_TYPE_EUTRAN_SNIFFER_PCI_LIST                   0x010C0003      

#define PARA_TYPE_EUTRAN_SNIFFER_STATUS                     0x010C0004
#define PARA_VALUE_EUTRAN_SNIFFER_STATUS_IDLE               0x00000001
#define PARA_VALUE_EUTRAN_SNIFFER_STATUS_ONGOING            0x00000002
#define PARA_VALUE_EUTRAN_BBU_SNIFFER_STATUS_UNAVAIL        0x00000003
#define PARA_VALUE_EUTRAN_BBU_SNIFFER_STATUS_IDLE           0x00000004
#define PARA_VALUE_EUTRAN_BBU_SNIFFER_STATUS_RSSI_MEASING   0x00000005
#define PARA_VALUE_EUTRAN_BBU_SNIFFER_STATUS_CELL_SEARCH    0x00000006
#define PARA_VALUE_EUTRAN_BBU_SNIFFER_STATUS_MIB_READING    0x00000007
#define PARA_VALUE_EUTRAN_BBU_SNIFFER_STATUS_SBI1_READING   0x00000008
#define PARA_VALUE_EUTRAN_BBU_SNIFFER_STATUS_SBIX_READING   0x00000009
#define PARA_VALUE_EUTRAN_BBU_SNIFFER_STATUS_FINISH         0x0000000A


#define PARA_TYPE_EUTRAN_SNIFFER_RSSI                       0x010C0005      
#define PARA_TYPE_EUTRAN_BBU_SLOT_ID                        0x010C0006      
#define PARA_TYPE_EUTRAN_SNIFFER_RESULT                     0x010C0007      
#define PARA_TYPE_EUTRAN_SNIFFER_BUSY                       0x010C0008
#define PARA_TYPE_EUTRAN_SNIFFER_EMPTY_RESULT               0x010C0009
#define PARA_TYPE_EUTRAN_UEID_IMSI                          0x010C000A
#define PARA_TYPE_EUTRAN_UEID_IMEI                          0x010C000B
#define PARA_TYPE_EUTRAN_PLMN_ID                            0x010C000C
#define PARA_TYPE_EUTRAN_TAC                                0x010C000D
#define PARA_TYPE_EUTRAN_DL_ARFCN                           0x010C000E
#define PARA_TYPE_EUTRAN_PCI                                0x010C000F
#define PARA_TYPE_EUTRAN_ARFCN_LIST                         0x010C0010
#define PARA_TYPE_EUTRAN_TIME                               0x010C0011
#define PARA_TYPE_EUTRAN_AUTO_CONFIG_CELL                   0x010C0012
#define PARA_TYPE_EUTRAN_RPT_RESULT_STRATEGY                0x010C0013
#define PARA_TYPE_EUTRAN_BBU_IP                             0x010C0014
#define PARA_TYPE_EUTRAN_BBU_PORT                           0x010C0015
#define PARA_TYPE_EUTRAN_BAND_WIDTH                         0x010C0016
#define PARA_TYPE_EUTRAN_TX_POWER_DB                        0x010C0017
#define PARA_TYPE_EUTRAN_RX_POWER                           0x010C0018
#define PARA_TYPE_EUTRAN_SOFTWARE_VERSION                   0x010C0019

#define PARA_TYPE_EUTRAN_BBU_STATE                          0x010C001A
#define PARA_VALUE_EUTRAN_BBU_INVALID                       0x00000001
#define PARA_VALUE_EUTRAN_BBU_INITIALIZING                  0x00000002
#define PARA_VALUE_EUTRAN_BBU_INIT_TO_CTRL_BOARD            0x00000003
#define PARA_VALUE_EUTRAN_BBU_INIT_CONFIGING                0x00000004
#define PARA_VALUE_EUTRAN_BBU_AVAILABLE                     0x00000005
#define PARA_VALUE_EUTRAN_BBU_SNIFFERING                    0x00000006
#define PARA_VALUE_EUTRAN_BBU_CELL_CONFIGING                0x00000007
#define PARA_VALUE_EUTRAN_BBU_LOCATION                      0x00000008

#define PARA_TYPE_EUTRAN_BBU_STATE_DES_STR                  0x010C001B
#define PARA_TYPE_EUTRAN_BBU_REBOOT_DESC_STR                0x010C001C
#define PARA_TYPE_EUTRAN_SYNC_MODE_CODE                     0x010C001D
#define PARA_TYPE_EUTRAN_SYNC_STATE_TYPE_CODE               0x010C001E
#define PARA_TYPE_EUTRAN_SYNC_STATE_CODE                    0x010C001F
#define PARA_TYPE_EUTRAN_FILE_NAME                          0x010C0020
#define PARA_TYPE_EUTRAN_UPGRADE_IP_ADDR                    0x010C0021
#define PARA_TYPE_EUTRAN_FILE_MD5                           0x010C0022
#define PARA_TYPE_EUTRAN_BBU_INFO_STR                       0x010C0023
#define PARA_TYPE_EUTRAN_UPGRADE_DOWN_MODE                  0x010C0024
#define PARA_TYPE_EUTRAN_CPU_TEMP                           0x010C0025
#define PARA_TYPE_EUTRAN_CPU_USAGE                          0x010C0026
#define PARA_TYPE_EUTRAN_MEM_USAGE                          0x010C0027
#define PARA_TYPE_EUTRAN_BOARD_TEMP                         0x010C0028
#define PARA_TYPE_EUTRAN_LOC_MODE_ENABLE                    0x010C0029
#define PARA_TYPE_EUTRAN_LOC_MODE_IMSI_LIST                 0x010C002A
#define PARA_TYPE_EUTRAN_UL_ARFCN                           0x010C002B
#define PARA_TYPE_EUTRAN_SNF_GPS_TM_DELAY                   0x010C002C
#define PARA_TYPE_EUTRAN_SNF_SYNC_MODE                      0x010C002D
#define PARA_TYPE_EUTRAN_IS_SAVE_FS                         0x010C002E
#define PARA_TYPE_EUTRAN_BBU_WORKING_BAND                   0x010C002F
#define PARA_TYPE_EUTRAN_PHY_VER                            0x010C0030
#define PARA_TYPE_EUTRAN_KERNEL_VER                         0x010C0031
#define PARA_TYPE_EUTRAN_AUTO_SNF_TIME                      0x010C0032
#define PARA_TYPE_EUTRAN_REDIT_TYPE                         0x010C0033
#define PARA_TYPE_EUTRAN_REDIT_BAND                         0x010C0034
#define PARA_TYPE_EUTRAN_REDIT_FRQ                          0x010C0035

#define PARA_TYPE_EUTRAN_AUTO_SNF_OPER_CODE                 0x010C0033
#define PARA_VALUE_EUTRAN_AUTO_SNF_SET                      0x00000001
#define PARA_VALUE_EUTRAN_AUTO_SNF_DEL                      0x00000002
#define PARA_VALUE_EUTRAN_AUTO_SNF_REQ                      0x00000003

#define PARA_TYPE_EUTRAN_AUTO_SNF_INFO_STR                  0x010C0034

#define PARA_TYPE_EUTRAN_UE_REDIRECT_OPER_CODE              0x010C0035
#define PARA_VALUE_EUTRAN_UE_REDIRECT_ON                    0x00000001
#define PARA_VALUE_EUTRAN_UE_REDIRECT_OFF                   0x00000002
#define PARA_VALUE_EUTRAN_UE_REDIRECT1                      0x00000003

#define PARA_TYPE_RAN_TYPE                                  0x010C0036
#define PARA_VALUE_RAN_TYPE_LTE                             0x00000001
#define PARA_VALUE_RAN_TYPE_GERAN                           0x00000002
#define PARA_VALUE_RAN_TYPE_UTRA_FDD                        0x00000003
#define PARA_VALUE_RAN_TYPE_UTRA_TDD                        0x00000004
#define PARA_VALUE_RAN_TYPE_CDMA2000_HRPD                   0x00000005
#define PARA_VALUE_RAN_TYPE_CDMA2000_1XRTT                  0x00000006

#define PARA_TYPE_EUTRAN_AUTO_SNF_DAY                       0x010C0037
#define PARA_TYPE_EUTRAN_NMM_DELAY                          0x010C0038
#define PARA_TYPE_EUTRAN_NMM_SINR                           0x010C0039

#define PARA_TYPE_EUTRAN_HARDWARE_VER                       0x010C003A
#define PARA_TYPE_EUTRAN_STD_TX_POWER                       0x010C003B
#define PARA_TYPE_EUTRAN_STD_TX_POWER_DB                    0x010C003C

#define PARA_TYPE_EUTRAN_UEID_FILTER_SWITCH                 0x010C003D
#define PARA_TYPE_EUTRAN_UEID_FILTER_TIMER                  0x010C003E

#define PARA_TYPE_EUTRAN_GPS_LONGTITUDE                     0x010C003F
#define PARA_TYPE_EUTRAN_GPS_LATITUDE                       0x010C0040
#define PARA_TYPE_EUTRAN_GPS_HEIGHT                         0x010C0041
#define PARA_TYPE_EUTRAN_RSRP                               0x010C0042
#define PARA_TYPE_EUTRAN_GPS_STARCNT						0x010C0060

#define PARA_TYPE_EUTRAN_BBU_ISMEASUREENABLE                0x010C0043

#define PARA_TYPE_EUTRAN_BBU_WORKING_MODE                   0x010C0044
#define PARA_VALUE_WOKRING_TYPE_NORMAL                      0x00000000 
#define PARA_VALUE_WOKRING_TYPE_BLACKLIST                   0x00000001 

#define PARA_TYPE_EUTRAN_IS_MEASURE_ENABLE                  0x010C0045

#define PARA_TYPE_EUTRAN_IS_POWER_OFF                       0x010C0046

#define PARA_TYPE_EUTRAN_IS_RAN_SHARE                       0x010C0047
#define PARA_TYPE_EUTRAN_NAS_REJECT_CAUSE_PAIR_STR          0x010C0048
#define PARA_TYPE_EUTRAN_BBU_LOGS_UPLOAD_PATH          0x010C0049
#define PARA_TYPE_EUTRAN_BBU_LOGS_COLLECT_SHELL_NAME          0x010C004A
#define PARA_TYPE_EUTRAN_BBU_SNF_EARFCN                     0x010C004B
#define PARA_TYPE_EUTRAN_SCAN_PERIOD						0x010C004C

#define PARA_TYPE_EUTRAN_RSRQ                     0x010C004D
#define PARA_TYPE_EUTRAN_PRIORITY                 0x010C004E
#define PARA_TYPE_EUTRAN_INTERFERENCE_ENABLE                        0x010C004F

#define PARA_TYPE_EUTRAN_BBU_DUPLEX_MODE					0x010C0050
#define PARA_TYPE_EUTRAN_BBU_OPERATOR                       0x010C0051
#define PARA_TYPE_EUTRAN_BBU6_DL_ARFCN						0x010C0052
#define PARA_TYPE_EUTRAN_BBU7_DL_ARFCN						0x010C0053
#define PARA_TYPE_EUTRAN_POWER_LIST                   		0x010C0054

#define PARA_TYPE_EUTRAN_SNIFFER_TYPE                       0x010C0055
#define PARA_VALUE_EUTRAN_OAM_SNIFFER						0x00000000
#define PARA_VALUE_EUTRAN_AUTO_SNIFFER						0x00000001


#define PARA_TYPE_EUTRAN_MINRXLEV                           0x010C0056
#define PARA_TYPE_EUTRAN_MINRXLEVOFFSET                     0x010C0057

#define PARA_TYPE_EUTRAN_LOCATION_MODE_ENABLE               0x010C0058

/*
Name: PA Address
Description: for two pa case
Length: Fixed 1 bytes
Possible Value: 0 or 1
*/
#define PARA_TYPE_EUTRAN_PA_ADDR                            0x010C0A00
#define PARA_VALUE_EUTRAN_PA_ADDR_0     0x00
#define PARA_VALUE_EUTRAN_PA_ADDR_1     0x01


/*
Name: PA state
Description: 
Length: Fixed 1 bytes
Possible Value: 0 or 1
*/
#define PARA_TYPE_EUTRAN_PA_STATE                           0x010C0A01
#define PARA_VALUE_EUTRAN_PA_OFF        0x00000000
#define PARA_VALUE_EUTRAN_PA_ON         0x00000001

/*
Name: PA ATT
Description: 
Length: 
Possible Value: byte 0 is pa_ul_att (lna), byte 1 is pa_dl_att (pa)
*/
#define PARA_TYPE_EUTRAN_PA_ATT                             0x010C0A02

/*
Name: PA Temperature
Description: 
Length: 
Possible Value: 1 byte
*/
#define PARA_TYPE_EUTRAN_PA_TEMP                            0x010C0A03

/*
Name: PA Stationary Wave Ratio
Description: 
Length: 
Possible Value: 1 byte
*/
#define PARA_TYPE_EUTRAN_PA_SWR                             0x010C0A04

/*
Name: PA Output Power
Description: 
Length: 
Possible Value: 1 byte
*/
#define PARA_TYPE_EUTRAN_PA_OUT_POWER                       0x010C0A05

/*
Name: Is write att value to EEPROM
Description: 
Length: 
Possible Value: 1 byte
*/
#define PARA_TYPE_EUTRAN_PA_ATT_SAVE_EEPROM                 0x010C0A06
#define PARA_VALUE_EUTRAN_PA_ATT_SAVE_EEPROM_T 0x00
#define PARA_VALUE_EUTRAN_PA_ATT_SAVE_EEPROM_F 0x01


/******** End of Eutran Module Parameter Type Definitions*****************/



/******** SYSMONITOR Module Parameter Type Definitions*****************/
#define PARA_TYPE_SYSMONITOR_MODULE_STATE            0x010E0000                            
#define PARA_VALUE_SYSMONITOR_MODULE_OK              0x00
#define PARA_VALUE_SYSMONITOR_MODULE_ERROR           0x01

/*
test every module
*/
#define PARA_TYPE_SYSMONITOR_TEST                    0x010E0001
#define PARA_VALUE_SYSMONITOR_MAIN                   0x00
#define PARA_VALUE_SYSMONITOR_THREAD1                0x01
#define PARA_VALUE_SYSMONITOR_THREAD2                0x02

/******** End of SYSMONITOR Module Parameter Type Definitions*****************/

/******** SMS Module Parameter Type Definitions************************/

/*
Name: sms caller/called id
Description: 
Length: 
Possible Value: 18912345678
*/
#define PARA_TYPE_3G_SMS_CALLER_ID              0x03000000

#define PARA_TYPE_3G_SMS_CALLED_ID              0x03000001

/*
Name: sms length
Description: 
Length: 
Possible Value: 
*/
#define PARA_TYPE_3G_SMS_LENGTH                 0x03000002

/*
Name: sms format
Description: special sms format
Length: Fixed 1 bytes
Possible Value: ascii or unicode
    ASCII    0x01
    UNICODE  0x02
*/
#define PARA_TYPE_3G_SMS_FORMAT                 0x03000003
#define PARA_VALUE_3G_SMS_FORMAT_ASCII   0x00000001
#define PARA_VALUE_3G_SMS_FORMAT_UNICODE 0x00000006

/*
Name: sms text
Description: 
Length: less than 160 byte
Possible Value: ascii or unicode
*/
#define PARA_TYPE_3G_SMS_TEXT                   0x03000004

/*
Name: the utc time when received sms
Description: 
Length: 
Possible Value:
*/
#define PARA_TYPE_3G_SMS_UTC                    0x03000005

#define PARA_TYPE_3G_SIM_STATE                  0x03000006

#define PARA_TYPE_3G_SMS_STATE                  0x03000007
#define PARA_VALUE_3G_SMS_OFF        0x00000000
#define PARA_VALUE_3G_SMS_ON         0x00000001

#define PARA_TYPE_3G_ALARM_REASON               0x03000008
#define PARA_TYPE_3G_ALARM_REASON_NULL     0x00
#define PARA_TYPE_3G_ALARM_REASON_PORT_ERR 0x01
#define PARA_TYPE_3G_ALARM_REASON_AT_ERR   0x02
#define PARA_TYPE_3G_ALARM_REASON_STOP     0x03

#define PARA_TYPE_3G_ALARM_ACTION               0x03000009
#define PARA_TYPE_3G_SMS_KEY                    0x0300000a

#define PARA_TYPE_3G_WORKMODE                   0x0300000b

/******** End of 3G Module Parameter Type Definitions*****************/


/******** FwMgr Module Parameter Type Definitions*****************/

/*
Name: FW upgrade url
Description:   fw download url
Length: 
Possible Value: 
ascii char string
*/

#define PARA_TYPE_SYS_UPGRADE_URL                       0x050D0001

/*
Name: FW package md5sum
Description:  md5sum value
Length: 32 bytes
Possible Value: 
ascii char string
*/

#define PARA_TYPE_SYS_UPGRADE_MD5SUM                    0x05000002

/*
Name: FW package NAME
Description:  pkg name value
Length: 32 bytes
Possible Value: 
ascii char string
*/

#define PARA_TYPE_SYS_UPGRADE_PKG                      0X050D0003
#define PARA_VALUE_UPGRADE_X86                         0x00
#define PARA_VALUE_UPGRADE_TDD                         0x01
#define PARA_VALUE_UPGRADE_FDD                         0x02
#define PARA_VALUE_UPGRADE_ALL_BASEBAND                0x03
#define PARA_VALUE_UPGRADE_ALL                         0x04
#define PARA_VALUE_UPGRADE_X86ANDFDD                   0x05
#define PARA_VALUE_UPGRADE_X86ANDTDD                   0x06
#define PARA_VALUE_UPGRADE_GSM                         0x07

#define PARA_TYPE_FWM_DOWNLOAD_STATE                   0x05000004
#define PARA_VALUE_DOWNLOAD_START                      0x00
#define PARA_VALUE_DOWNLOAD_END                        0x01


#define PARA_TYPE_FWM_UPGRADE_FIEL_NAME                0x05000005

/******** End of FwMgr Module Parameter Type Definitions*****************/

/********RECONNECT CAUSE CODE*******************************************/
#define SYSTEM_POWER_ON             0x0000
#define SYSTEM_MANUAL_RESTRAT       0x0001
#define SYSTEM_SOFTWARE_UPGRADE     0x0002
#define SYSTEM_FACTORY_RESET        0x0003
#define SYSTEM_SOFT_RESTART         0x0004
#define CAN_NOT_CONNECT_NETWORK     0x0005
#define SYSTEM_UPGRADE              0x0006
#define MANAGER_SERVER_HB_LOST      0x0007
#define DATA_SERVER_HB_LOST         0x0008


/******** End of Parameter Type Definitions***************************/


#ifdef __cplusplus
}
#endif

#endif
